package com.jzo2o.customer.controller.agency;

import com.jzo2o.common.model.Result;
import com.jzo2o.customer.mapper.AgencyCertificationMapper;
import com.jzo2o.customer.model.domain.AgencyCertification;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController("agencyRejectReasonController")
@RequestMapping("/agency/agency-certification-audit/rejectReason")
@Api(tags = "机构端 - 机构下属服务人员相关接口")
public class RejectReasonController {

    @Resource
    private AgencyCertificationMapper agencyCertificationMapper;
    @GetMapping
    @ApiOperation("查询最新的驳回原因")
    public Result<Void> queryInstitutionStaffList() {
        List<AgencyCertification> agencyCertification = agencyCertificationMapper.queryInstitutionStaffList();
        return new Result(200, "OK", (Object)agencyCertification);
    }
}
